home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
3D GFX
/
3D GFX.iso
/
amiutils
/
m_p
/
photocdaga
/
src
/
ppm2aga
/
ppm2aga.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-12-30
|
985b
|
44 lines
/* ppm2AGA.h V1.0 */
#include <setjmp.h>
#ifndef IFFP_IFF_H
#include <iffp/iff.h>
#endif
#ifndef _PPM_H
#include "ppm.h"
#endif
#include "ppmcmap.h"
#include <stdio.h>
/* definitions for ppm2ilbm */
#define ESTIMATE 0
#define HAM6 1
#define HAM8 2
#define COLORMAP 3
#define LARGE_NORM
#define REP_AVERAGE_PIXELS
pixel *next_pixrow(FILE *fp, int row, int ColorShift);
colorhist_vector
ppm_fcomputecolorhist(FILE *pixels, int cols, int rows,
int maxcolors, int *colorsP, int ColorShift, int cluster);
colorhash_table
ppm_fcomputecolorhash(FILE *pixels, int cols, int rows,
int maxcolors, int *colorsP, int ColorShift, int cluster);
colorhist_vector
ppm_fcolorhashtocolorhist(colorhash_table cht, int maxcolors, int cluster);
colorhist_vector
mediancut( colorhist_vector chv, int colors, int sum, pixval maxval, int newcolors);
/* definitions for iffp modules */
#ifdef message
#undef message
#endif
#define message pm_message